package jude.java.money.article;

public class Page {

	private String url;
	private String titleRegex;
	private String contentRegex;
	private int[] groups;
	private String[] failures;
	private String[] successs;
	private String startString;
	private String endString;
	
	private boolean followRedirects = true;
	
	public Page() {
	}
	public Page(String url, String regex, int[] groups, String[] fails, String[] succs) {
		this.url = url;
		this.contentRegex = regex;
		this.groups = groups;
		this.failures = fails;
		this.successs = succs;
	}
	
	public Page setStartString(String startString) {
		this.startString = startString;
		return this;
	}
	public String getStartString() {
		return startString;
	}
	public Page setEndString(String endString) {
		this.endString = endString;
		return this;
	}
	public String getEndString() {
		return endString;
	}
	
	public String getUrl() {
		return url;
	}
	public Page setUrl(String url) {
		this.url = url;
		return this;
	}
	public String getContentRegex() {
		return contentRegex;
	}
	public Page setContentRegex(String regex) {
		this.contentRegex = regex;
		return this;
	}
	public String getTitleRegex() {
		return titleRegex;
	}
	public Page setTitleRegex(String titleRegex) {
		this.titleRegex = titleRegex;
		return this;
	}
	public int[] getGroups() {
		return groups;
	}
	public Page setGroups(int[] groups) {
		this.groups = groups;
		return this;
	}
	public String[] getFailures() {
		return failures;
	}
	public Page setFailures(String[] failures) {
		this.failures = failures;
		return this;
	}
	public String[] getSuccesss() {
		return successs;
	}
	public Page setSuccesss(String[] successs) {
		this.successs = successs;
		return this;
	}
	public boolean isFollowRedirects() {
		return followRedirects;
	}
	public Page setFollowRedirects(boolean followRedirects) {
		this.followRedirects = followRedirects;
		return this;
	}
	
}
